







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Reverses the order of comparison of an Comparison<T>. The resulting comparison can be used,
for example, to sort a collection in descending order.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public static Comparison<T> GetReverseComparison<T>( Comparison<T> comparison ) |
Visual Basic (Declaration) |
---|
Public Shared Function GetReverseComparison(Of T) ( _ comparison As Comparison(Of T) _ ) As Comparison(Of T) |
Visual C++ |
---|
public: generic<typename T> static Comparison<T>^ GetReverseComparison ( Comparison<T>^ comparison ) |
Parameters
- comparison
- Comparison<(Of <T>)>
The comparison to reverse.
Return Value
A Comparison<T> that compares items in the reverse order of comparison.
Type Parameters
- T
- The type of items that are being compared.
Exceptions
Exception | Condition |
---|---|
System..::ArgumentNullException | comparison is null. |
See Also
Algorithms Class
Wintellect.PowerCollections Namespace